<table id="banjiTable"></table>
<script type="text/javascript" src="static/custom.js"></script>
<script type="text/javascript">
	var queryParam="";
	$(function(){
		var options=$.extend({},$.crudgrid.defaults,{
			title:'班级管理',
			url:'banji/page',
			dialog:{
				add:{
					title:'新增',
					href:'banji/edit',
					action:'banji/save'
				},
				edit:{
					title:'修改',
					href:'banji/edit',
					action:'banji/save'
				},
				search:{
					title:'查询',
					href:'banji/search'
				},
				remove:{
					url:'banji/delete',
					msg:'是否要删除这条记录？'
				}
			},
			columns:[
				[
					{title:'cb',field:'cb',checkbox:true},
					{title:'序号',field:'id',width:200,hidden:true},
					{title:'班级名称',field:'name',width:300, formatter:function(val,row){
						return val;
					}},
					{title:'班主任',field:'manager',width:200,sortable:true}
				]		
			],
			toolbar:[$.crudgrid.buttons.add,'-',$.crudgrid.buttons.edit,'-',$.crudgrid.buttons.remove,'-',$.crudgrid.buttons.search,'-',$.crudgrid.buttons.refresh,'-']
		});
		$('#banjiTable').datagrid(options);
	})
</script>


